def headline
  count = 10
  files = []

  @file_extension.each do |fext|
    files += Dir.glob("#{@datadir}/**/*.#{fext}")
  end

  @head_line = files.sort_by {|f| get_post_time(f)}[0,count]
end

def headline_display
  src = "<ul>\n"

  @head_line.each do |entry|
    title = ''
	 path = ''
    File::open(entry,"r"){|f|
      title = f.gets.chomp
		path = Path.new(entry, @datadir)
    }
	 href = %Q("#{@url}#{path.path}/#{path.filename}.html")
    src += %(<li><a href=#{href}">#{title}</a></li>\n)
  end
  
  src += "</ul>\n"
end

